package org.nf.trading.service.app.address;

import org.nf.trading.entity.Address;

import java.util.List;

public interface AddressService {
    /**
     *
     * 添加地址
     * @param address
     * @return
     */
    boolean  insert(Address address);

    /**
     * 通过用户id查询全部地址
     * @param uid
     * @return
     */
    List<Address> listAddressByUid(Integer uid);

    /**
     * 通过id查询地址信息
     * @param addressId
     * @return
     */
    Address selectByPrimaryKey(Integer addressId);
}
